namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class ForumTopicMap : ClassMap<ForumTopicDataModel>
    {
        #region Constructors and Destructors

        public ForumTopicMap()
        {
            this.Table("ForumTopic");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");
            this.Map(x => x.CultureCode).Not.Nullable().Column("CultureCode");
            this.Map(x => x.Name).Not.Nullable().Column("Name");
            this.Map(x => x.Description).Column("Description");
            this.Map(x => x.CreationDate).Not.Nullable().Column("CreationDate");
            this.Map(x => x.Author).Not.Nullable().Column("Author");
            this.Map(x => x.IsSticky).Not.Nullable().Column("Sticky");
            this.Map(x => x.IsLocked).Not.Nullable().Column("Locked");
            this.Map(x => x.IsDeleted).Not.Nullable().Column("IsDeleted");
            //HasMany(x => x.ForumPosts);
            //HasMany(x => x.ForumTopicTags);
            //HasMany(x => x.ReadLogs);
        }

        #endregion
    }
}